import request from '@/utils/request'

// 查询端口台账列表
export function listPort(query) {
  return request({
    url: '/bill/port/list',
    method: 'get',
    params: query
  })
}


export function getTodayTotal(now) {
  return request({
    url: '/bill/port/getTodayTotal?now=' + now,
    method: 'get',
  })
}

export function accountBelongList() {
  return request({
    url: '/bill/port/accountBelongList',
    method: 'get',
  })
}
// 查询端口台账详细
export function getPort(id) {
  return request({
    url: '/bill/port/' + id,
    method: 'get'
  })
}

// 新增端口台账
export function addPort(data) {
  return request({
    url: '/bill/port',
    method: 'post',
    data: data
  })
}
// 补录台账
export function record(data) {
  return request({
    url: '/bill/port/record',
    method: 'post',
    data: data
  })
}
export function matching() {
  return request({
    url: '/bill/port/matching',
    method: 'get',
  })
}

// 修改端口台账
export function updatePort(data) {
  return request({
    url: '/bill/port',
    method: 'put',
    data: data
  })
}

// 删除端口台账
export function delPort(id) {
  return request({
    url: '/bill/port/' + id,
    method: 'delete'
  })
}
